package com.e3.web.core.server;

import com.e3.core.base.ServiceException;
import com.e3.web.core.client.WebException;
import com.e3.web.core.client.WebUnkownException;

public abstract class GwtRPCVoidExecutor {
	
	public void doExecute() throws WebException{
		try{
			execute();
		} catch (ServiceException e) {
			e.printStackTrace();
			throw new WebException(e.getMessage());
		} catch(Exception e){
			e.printStackTrace();
			throw new WebUnkownException();
		}
	}

	public abstract void execute() throws ServiceException,Exception;

}
